//专门配置ajax请求
let baseUrl = 'http://www.itcbc.com:8080'
$.ajaxPrefilter(function(option){
  //请求路径
  option.url = baseUrl + option.url
  option.complete = function (xhr){
    console.log(xhr);
    let res = xhr.responseJSON
    if(res.status === 1){
      layer.msg(res.message)
    }
  }
  option.headers = {
    Authorization:localStorage.getItem('token')
  }
})